package kr.saeildadim.androidexam_saeildamil.chapter7;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.View;

public class MyView extends View {
	Paint paint; 
	
	public MyView(Context context) {
		super(context);
		paint = new Paint();
		paint.setAntiAlias(true);
		paint.setColor(Color.BLUE);
		paint.setStrokeWidth(10);
		paint.setStyle(Paint.Style.STROKE);
		paint.setStrokeJoin(Paint.Join.BEVEL);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		canvas.drawColor(Color.LTGRAY);
		canvas.drawRect(10, 10, 300, 100, paint);
	}

}
